package com.kaishengit.entity;

public class CarItem {

	private Prod prod;
	private int num;
	private float price;
	
	public Prod getProd() {
		return prod;
	}
	public void setProd(Prod prod) {
		this.prod = prod;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
		this.price = this.prod.getPrice()*this.num;
	}
	public float getPrice() {
		return price;
	}
}
